<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <meta charset="UTF-8">
  <title>评论列表</title>
</head>

<body>
<table id="test">
  <colgroup>
    <col width="100">
    <col width="200">
    <col width="150">
    <col width="150">
  </colgroup>
  <thead>
  <tr>
    <th>序号</th>
    <th>用户</th>
    <th>内容</th>
    <th>时间</th>
  </tr>
  </thead>
  <tbody>
  <c:forEach items="${remarks}" var="remark" varStatus="r">
    <c:forEach items="${userList}" var="user" varStatus="s1">
      <c:if test="${user.id == remark.userid}">
        <tr>
          <td>${r.count}</td>
          <td>${user.username}</td>
            <%--<td><a href="commentList?pid=${post.pid}"}>${post.title}</a></td>--%>
          <td>${remark.content}</td>
          <td>${remark.date}</td>
        </tr>
      </c:if>
    </c:forEach>
  </c:forEach>
  </tbody>
</table>
<c:if test="${pageInfo.isLast}">
  <span><a href="post_list?page=${pageInfo.pageIndex-1}">上一页</a></span>
</c:if>
<c:if test="${pageInfo.isNext}">
  <span><a href="post_list?page=${pageInfo.pageIndex+1}">下一页</a></span>
</c:if>
<span>共${pageInfo.sumCount}页</span>&nbsp;&nbsp;&nbsp;&nbsp;

</body>
</html>